package com.cskaoyan.javase.oop2._0encapsulate._1basic;

/**
 * @description: 快捷键的使用
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

/**
 * 快速生成get/set方法: alt + insert
 *
 *
 */
public class Demo {
}
class Animal{
    private String name;
    private int age;
    private double price;
    private String breed;


    public Animal() {
    }

    public Animal(String name, int age, double price, String breed) {
        this.name = name;
        this.age = age;
        this.price = price;
        this.breed = breed;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }
}